{include file=header.html}
<div id="page-credit">
	{include file=curlocal.html}
    <div class="w-shop clearfix">
        <div class="col-sub w210">
            {include file=left.html}
        </div>
        <div class="col-main ml10 w980">
            <div class="border mb10">
            	<a name="module"></a>
                <div class="title border-b">
                    <h3>
                        {$lang.praise_rate}{$lang.colon}
                        <b style="{if $store.praise_rate le 50}color:#28B779;{else}color:#DA542E ;{/if}">
                            {$store.praise_rate}%
                        </b>
                    </h3>
                </div>
                <div class="credit-recorder">
                    <table class="w-full">
                        <tr>
                            <th>
                            </th>
                            <th>
                                {$lang.in_a_week}
                            </th>
                            <th>
                                {$lang.in_a_month}
                            </th>
                            <th>
                                {$lang.in_six_month}
                            </th>
                            <th>
                                {$lang.six_month_before}
                            </th>
                            <th class="border-r-0">
                                {$lang.total}
                            </th>
                        </tr>
                        <tr style="color:#DA542E;font-weight:bold;">
                            <th>
                                <div>
                                    {$lang.good_eval}
                                </div>
                            </th>
                            <td>
                                {$stats.3.in_a_week}
                            </td>
                            <td>
                                {$stats.3.in_a_month}
                            </td>
                            <td>
                                {$stats.3.in_six_month}
                            </td>
                            <td>
                                {$stats.3.six_month_before}
                            </td>
                            <td class="border-r-0">
                                {$stats.3.total}
                            </td>
                        </tr>
                        <tr style="font-weight:bold;">
                            <th>
                                <div>
                                    {$lang.normal_eval}
                                </div>
                            </th>
                            <td>
                                {$stats.2.in_a_week}
                            </td>
                            <td>
                                {$stats.2.in_a_month}
                            </td>
                            <td>
                                {$stats.2.in_six_month}
                            </td>
                            <td>
                                {$stats.2.six_month_before}
                            </td>
                            <td class="border-r-0">
                                {$stats.2.total}
                            </td>
                        </tr>
                        <tr style="color: #28B779;font-weight:bold;">
                            <th>
                                <div>
                                    {$lang.bad_eval}
                                </div>
                            </th>
                            <td>
                                {$stats.1.in_a_week}
                            </td>
                            <td>
                                {$stats.1.in_a_month}
                            </td>
                            <td>
                                {$stats.1.in_six_month}
                            </td>
                            <td>
                                {$stats.1.six_month_before}
                            </td>
                            <td class="border-r-0">
                                {$stats.1.total}
                            </td>
                        </tr>
                        <tr style="font-weight:bold;color: #2953a6;" class="border-b-0">
                            <th>
                                <div>
                                    {$lang.total}
                                </div>
                            </th>
                            <td>
                                {$stats.0.in_a_week}
                            </td>
                            <td>
                                {$stats.0.in_a_month}
                            </td>
                            <td>
                                {$stats.0.in_six_month}
                            </td>
                            <td>
                                {$stats.0.six_month_before}
                            </td>
                            <td class="border-r-0">
                                {$stats.0.total}
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="credit-detail mb10">
              <ul class="user-menu">
                <li class="{if !$smarty.get.eval}active{/if}">
                  <a style="border-left:1px solid #ddd;" href="{url app=store&act=credit&id=$store.store_id}#module">
                    <span>
                      {$lang.all_eval}
                    </span>
                  </a>
                </li>
                <li class="{if $smarty.get.eval eq 3}active{/if}">
                  <a href="{url app=store&act=credit&id=$store.store_id&eval=3}#module">
                    <span>
                      {$lang.good_eval}
                    </span>
                  </a>
                </li>
                <li class="{if $smarty.get.eval eq 2}active{/if}">
                  <a href="{url app=store&act=credit&id=$store.store_id&eval=2}#module">
                    <span>
                      {$lang.normal_eval}
                    </span>
                  </a>
                </li>
                <li class="{if $smarty.get.eval eq 1}active{/if}">
                  <a href="{url app=store&act=credit&id=$store.store_id&eval=1}#module">
                    <span>
                      {$lang.bad_eval}
                    </span>
                  </a>
                </li>
              </ul>
              <div class="detail">
                <table>
                  <tr class="table-header">
                    <th width="10%">
                      {$lang.eval}
                    </th>
                    <th width="25%" class="width2">
                      {$lang.content}
                    </th>
                    <th width="25%" class="width3">
                      {$lang.goods}
                    </th>
                    <th width="10%">
                      {$lang.amount}
                    </th>
                    <th width="10%">
                      {$lang.buyer}
                    </th>
                    <th width="20%">
                      {$lang.time}
                    </th>
                  </tr>
                  <!--{foreach from=$goods_list item=goods}-->
                  <tr>
                    <th>
                      <!--{if $goods.evaluation eq 1}-->
                      <span style="color: #28B779;font-weight:bold;">
                        {$lang.bad_eval}
                      </span>
                      <!--{elseif $goods.evaluation eq 2}-->
                      <span>
                        {$lang.normal_eval}
                      </span>
                      <!--{else}-->
                      <span style="color:#DA542E;font-weight:bold;">
                        {$lang.good_eval}
                      </span>
                      <!--{/if}-->
                    </th>
                    <td>
                      <div>
                        {$goods.comment|escape|nl2br}
                      </div>
                    </td>
                    <td>
                      <a href="{url app=goods&id=$goods.goods_id}">
                        {$goods.goods_name|escape}
                      </a>
                    </td>
                    <td class="price">
                      {$goods.price|price}
                    </td>
                    <td>
                      {$goods.buyer_name|escape}
                    </td>
                    <td>
                      {$goods.evaluation_time|date:complete}
                    </td>
                  </tr>
                  <!--{/foreach}-->
                </table>
              </div>
              {include file=page.bottom.html}
            </div>
        </div>
    </div>
</div>
{include file=footer.html}